var actionOperateFunction = {
	saveWindow : function(actionId){
		new WindowPanel({
			id : 'saveActionOperate',
			title:'添加操作',
			width:420,
			height:230,
			html : '<iframe name="saveActionOperate" id="saveActionOperate" src="'+path+'/system/actionOperate/toSave.action?actionId='+actionId+'" frameborder="0"></iframe>',
			toolBar : new ToolBar({
				items:[{
					text : '保存',
					pic : 'add',
					userable:'true',
					handler : function(){
						$(window.frames["saveActionOperate"].document).find("#form").submit();
					}	
			}]
			})
		});
	},
	updateWindow : function(id){
		new WindowPanel({
			id : 'updateActionOperate',
			title:'修改操作',
			width:420,
			height:230,
			html : '<iframe name="updateActionOperate" id="updateActionOperate" src="'+path+'/system/actionOperate/toUpdate.action?actionOperateInfo.id='+id+'" frameborder="0"></iframe>',
			toolBar : new ToolBar({
				items:[{
					text : '修改',
					pic : 'edit',
					userable:'true',
					handler : function(){
						$(window.frames["updateActionOperate"].document).find("#form").submit();
					}	
			}]
			})
		});
	}
}

